<template>
  <div>
    <el-alert v-if="typeStr"
      :title="typeStr"
      type="info"
      style="justify-content: center;margin-bottom: 10px;"
      :closable="false">
    </el-alert>
  </div>
</template>

<script>

import {fieldMap} from "@/fields/menu";

export default {
  name: "fieldType",
  components: {},
  props: ["config"],
  data() {
    return {
    };
  },
  computed: {
    typeStr() {
      if (this.config && this.config.type) {
        return fieldMap.get(this.config.type).name+"组件";
      }
      return null;
    }
  },
  methods: {},
  mounted() {

  }
}
</script>,
<style scoped>

</style>
